/*
 * Created by JFormDesigner on Tue Dec 27 23:28:35 ICT 2011
 */

package View;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

import org.jdesktop.swingx.JXDatePicker;

/**
 * @author Khainx
 */
public class ReportManagerView extends JPanel {
	public ReportManagerView() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel1 = new JPanel();
		label1 = new JLabel();
		panel2 = new JPanel();
		panel4 = new JPanel();
		rdbtnMonth = new JRadioButton();
		txtMonth = new JTextField();
		label2 = new JLabel();
		txtYear = new JTextField();
		rdbtnFromDate = new JRadioButton();
		xdateFromDate = new JXDatePicker();
		label3 = new JLabel();
		xdateToDate = new JXDatePicker();
		panel5 = new JPanel();
		rdbtnToLocation = new JRadioButton();
		cbxToLocation = new JComboBox();
		rdbtnToProject = new JRadioButton();
		cbxToProject = new JComboBox();
		rdbtnToDepartment = new JRadioButton();
		cbxToDepartment = new JComboBox();
		panel6 = new JPanel();
		panel3 = new JPanel();
		btnView = new JButton();
		btnCancel = new JButton();

		//======== this ========
		setLayout(new BorderLayout());

		//======== panel1 ========
		{
			panel1.setLayout(new FlowLayout());

			//---- label1 ----
			label1.setText("Report Manager");
			label1.setFont(new Font("Tahoma", Font.BOLD, 30));
			panel1.add(label1);
		}
		add(panel1, BorderLayout.NORTH);

		//======== panel2 ========
		{
			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {0.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};

			//======== panel4 ========
			{
				panel4.setBorder(new TitledBorder("Type of View"));
				panel4.setLayout(new GridBagLayout());
				((GridBagLayout)panel4.getLayout()).columnWidths = new int[] {0, 0, 0, 0, 0};
				((GridBagLayout)panel4.getLayout()).rowHeights = new int[] {0, 0, 0};
				((GridBagLayout)panel4.getLayout()).columnWeights = new double[] {0.0, 0.0, 0.0, 0.0, 1.0E-4};
				((GridBagLayout)panel4.getLayout()).rowWeights = new double[] {0.0, 0.0, 1.0E-4};

				//---- rdbtnMonth ----
				rdbtnMonth.setText("Month");
				panel4.add(rdbtnMonth, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 5), 0, 0));
				panel4.add(txtMonth, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 5), 0, 0));

				//---- label2 ----
				label2.setText("Year");
				panel4.add(label2, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 5), 0, 0));
				panel4.add(txtYear, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 0), 0, 0));

				//---- rdbtnFromDate ----
				rdbtnFromDate.setText("From Date");
				panel4.add(rdbtnFromDate, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 5), 0, 0));
				panel4.add(xdateFromDate, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 5), 0, 0));

				//---- label3 ----
				label3.setText("To Date");
				panel4.add(label3, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 5), 0, 0));
				panel4.add(xdateToDate, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 0), 0, 0));
			}
			panel2.add(panel4, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 0), 0, 0));

			//======== panel5 ========
			{
				panel5.setBorder(new TitledBorder("Option"));
				panel5.setLayout(new GridBagLayout());
				((GridBagLayout)panel5.getLayout()).columnWidths = new int[] {0, 0, 0};
				((GridBagLayout)panel5.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
				((GridBagLayout)panel5.getLayout()).columnWeights = new double[] {0.0, 1.0, 1.0E-4};
				((GridBagLayout)panel5.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};

				//---- rdbtnToLocation ----
				rdbtnToLocation.setText("To Location");
				panel5.add(rdbtnToLocation, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 5), 0, 0));
				panel5.add(cbxToLocation, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 0), 0, 0));

				//---- rdbtnToProject ----
				rdbtnToProject.setText("To Project");
				panel5.add(rdbtnToProject, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 5), 0, 0));
				panel5.add(cbxToProject, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 5, 0), 0, 0));

				//---- rdbtnToDepartment ----
				rdbtnToDepartment.setText("To Department");
				panel5.add(rdbtnToDepartment, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 5), 0, 0));
				panel5.add(cbxToDepartment, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0,
					GridBagConstraints.CENTER, GridBagConstraints.BOTH,
					new Insets(0, 0, 0, 0), 0, 0));
			}
			panel2.add(panel5, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 5, 0), 0, 0));

			//======== panel6 ========
			{
				panel6.setBorder(new TitledBorder("View Report"));
				panel6.setLayout(new GridBagLayout());
				((GridBagLayout)panel6.getLayout()).columnWidths = new int[] {0, 0, 0};
				((GridBagLayout)panel6.getLayout()).rowHeights = new int[] {0, 0, 0, 0};
				((GridBagLayout)panel6.getLayout()).columnWeights = new double[] {0.0, 0.0, 1.0E-4};
				((GridBagLayout)panel6.getLayout()).rowWeights = new double[] {0.0, 0.0, 0.0, 1.0E-4};
			}
			panel2.add(panel6, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
		}
		add(panel2, BorderLayout.CENTER);

		//======== panel3 ========
		{
			panel3.setLayout(new FlowLayout());

			//---- btnView ----
			btnView.setText("View");
			panel3.add(btnView);

			//---- btnCancel ----
			btnCancel.setText("Cancel");
			panel3.add(btnCancel);
		}
		add(panel3, BorderLayout.SOUTH);
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel1;
	private JLabel label1;
	private JPanel panel2;
	private JPanel panel4;
	private JRadioButton rdbtnMonth;
	private JTextField txtMonth;
	private JLabel label2;
	private JTextField txtYear;
	private JRadioButton rdbtnFromDate;
	private JXDatePicker xdateFromDate;
	private JLabel label3;
	private JXDatePicker xdateToDate;
	private JPanel panel5;
	private JRadioButton rdbtnToLocation;
	private JComboBox cbxToLocation;
	private JRadioButton rdbtnToProject;
	private JComboBox cbxToProject;
	private JRadioButton rdbtnToDepartment;
	private JComboBox cbxToDepartment;
	private JPanel panel6;
	private JPanel panel3;
	private JButton btnView;
	private JButton btnCancel;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
